package com.example.j2025_11_11;

import jakarta.annotation.Resource;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

@Service
@Data
public class Students {
    @Resource(name = "S1")
    private Stduent stduent1;

    public void print(){
        stduent1.print();
    }

}
